package com.snok.emenu;

import android.content.Context;
import android.widget.ImageButton;

public class MenuButton extends ImageButton {
	public 		int 	ID;
	//protected 	boolean state;//false - normal  true - pressed
	protected   snok_emenu_main mParent;
	
	MenuButton(Context context,int id){
		super(context);
		mParent = (snok_emenu_main)context;
		ID = id;
		setImageResource(R.drawable.menu_btn_background);
		setClickable(true);
	}
	
	/*
	 * State true:pressed  false: not pressed 
	 */
	public void SetState(boolean State)
	{
		if(!State)//normal
		{
			setImageResource(R.drawable.menu_btn_background);
		}
		else
		{
			setImageResource(R.drawable.button_press);
		}
	}
}
